package com.wnnight.wys.mapper.car;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.wnnight.wys.entity.car.CarInOut;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;


/**
 * @ClassName: CarMapper
 * @Description: 车辆进出mapper
 * @author: CHX42
 * @date: 2022/8/27-17:30
 * @version: v1.0
 */
public interface CarInOutMapper extends BaseMapper<CarInOut> {

    @Select("SELECT * FROM wys_car_in_out LEFT JOIN wys_car ON wys_car_in_out.car_num=wys_car.car_num ${ew.customSqlSegment}")
    Page<CarInOut> getAll(Page page,@Param("ew") Wrapper wrapper);

}
